package com.kfkj;

/**
 * @author 杨琛
 */
public class ThreadpriorityDemo  {
    public static void main(String[] args) {
        TheadPriority tp1 = new TheadPriority();
        TheadPriority tp2 = new TheadPriority();
        TheadPriority tp3 = new TheadPriority();

        tp1.setName("火车");
        tp2.setName("ak");
        tp3.setName("导弹");

        tp1.setPriority(5);
        tp2.setPriority(10);
        tp3.setPriority(5);

        tp1.start();
        tp2.start();
        tp3.start();

    }
}
